<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Title</title>
	<script src="lib/react.development.js"></script>
	<script src="lib/react-dom.development.js"></script>
	<script src="lib/babel.min.js"></script>
</head>
<body>
<div id="root"></div>
</body>
<script type="text/babel">
	// 3- bind
	const root = ReactDOM.createRoot(document.querySelector("#root"));
	class App extends React.Component{
		username = "wangwu";
		render(){
			return (
				<div>
					<h3 onClick={this.run.bind(this,1,2,3,4)}>App:{this.username}</h3>
				</div>
			)
		}
		run(a,b,c,d){
			console.log(this.username,a,b,c,d)
		}
	}
	root.render(<App/>);
</script>
</html>